package ninja.awesome.game;

import ninja.awesome.framework.Game;
import ninja.awesome.framework.Graphics;
import ninja.awesome.framework.Screen;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Align;

public class DonateScreen extends Screen {

	public DonateScreen(Game game) {
		super(game);
	}

	@Override
	public void update(float deltaTime) {

	}

	@Override
	public void paint(float deltaTime) {
		Graphics g = game.getGraphics();
		g.clearScreen(Color.BLACK);
		Paint p = new Paint();
		p.setTextSize(85);
		p.setColor(Color.WHITE);
		p.setTextAlign(Align.CENTER);
		p.setAntiAlias(true);
		p.setTypeface(Assets.fontFace);
		g.drawString(Assets.textDonate0, NinjaGame.WIDTH / 2, NinjaGame.HEIGHT / 2 - 155, p);
		g.drawString(Assets.textDonate1, NinjaGame.WIDTH / 2, NinjaGame.HEIGHT / 2 - 75, p);
		p.setTextSize(70);
		p.setColor(Color.YELLOW);
		g.drawString(Assets.textDonate2, NinjaGame.WIDTH / 2, NinjaGame.HEIGHT / 2 + 25, p);
		p.setColor(Color.CYAN);
		p.setTextSize(55);
		g.drawString(Assets.textDonate3, NinjaGame.WIDTH / 2, NinjaGame.HEIGHT / 2 + 95, p);
	}

	@Override
	public void pause() {
	}

	@Override
	public void resume() {
	}

	@Override
	public void dispose() {
	}

	@Override
	public void backButton() {
		game.setScreen(new MainMenuScreen(game));
	}

}
